package maze;

public class Tile implements Cloneable{

	private int ID;
	private Cell start;
	private Cell end;		
	private String orientation;
	private boolean mouse;
	
	/**
	 * 
	 * @param id
	 * @param start start cell
	 * @param end end cell
	 * @param orient string either V for Vertical tile or H for Horizontal
	 * @param mouse a boolean variable that refers to whether it's a mouse or tile 
	 */
	public Tile(int id, Cell start, Cell end, String orient, boolean mouse) {
		this.setID(id);
		this.start = start;
		this.end = end;
		orientation = orient;
		this.mouse = mouse;
	}
	/**
	 * overrides the toString method, 
	 * displays the tile's start and end coordinates(cells) 
	 */
	public String toString() {
		return "Start: " + start.getX() + "," + start.getY() + 
		"End: " + end.getX() + "," + end.getY() + "\n"; 
	}
	
	public Cell getStart() {
		return start;
	}

	public void setStart(Cell start) {
		this.start = start;
	}

	public Cell getEnd() {
		return end;
	}

	public void setEnd(Cell end) {
		this.end = end;
	}

	public String getOrientation() {
		return orientation;
	}

	public void setOrientation(String orientation) {
		this.orientation = orientation;
	}

	public boolean isMouse() {
		return mouse;
	}

	public void setMouse(boolean mouse) {
		this.mouse = mouse;
	}

	public void setID(int iD) {
		ID = iD;
	}

	public int getID() {
		return ID;
	}

}
